#include "stdafx.h"
#pragma warning(disable : 4561)

#include "DBFQuoteServiceFactory.h"
#include "DBFQuoteAdapter.h"

#ifdef __DATE__
#define BUILD_DATE __DATE__
#else
#define BUILD_DATE "xx/xx/xx"
#endif
#ifdef __TIME__
#define BUILD_TIME __TIME__
#else
#define BUILD_TIME "xx:xx:xx"
#endif



extern "C" DBFQUOTEAPI const char* GetBuildTime()
{
	static char buildInfo[256];	
	sprintf_s(buildInfo,"#Build: %.20s, %.9s",BUILD_DATE,BUILD_TIME);
	return buildInfo;
}

extern "C"	DBFQUOTEAPI  const char* DllGetVersion()
{
#define DLL_UTILS_VERSION		"1.0.0"
	static char version[256] ={0};
	sprintf_s(version,"%s  %s",DLL_UTILS_VERSION,GetBuildTime());
	return version;
}



//#include "DemoQuoteService.h"


extern "C" DBFQUOTEAPI void * CreateQuoteService( const char* name )
{
	return new quoteadapter::dbf::CDBFQuoteAdapter;//return new CDemoQuoteService;
}
/*
class IQuoteService;
extern "C" DBFQUOTEAPI void DestoryQuoteService( IQuoteService *service )
{
	delete service;
}
*/